﻿using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;

namespace QuDao
{
	public class OrderDto
	{
		/// <summary>
        /// 订单ID
        /// </summary>
		public long OrderID { get; set; }
		
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 用户ID
        /// </summary>
		public long UserID { get; set; }
		
		/// <summary>
        /// 用户类型：分ABC三级
        /// </summary>
		public string UserType { get; set; }
		
		/// <summary>
        /// 用户姓名
        /// </summary>
		public string TrueName { get; set; }
		
		/// <summary>
        /// 手机号
        /// </summary>
		public string Mobile { get; set; }
		
		/// <summary>
        /// 商品总数
        /// </summary>
		public int Total { get; set; }

        /// <summary>
        /// 余额抵扣
        /// </summary>
        public decimal DeductionAmount { get; set; }

        /// <summary>
        /// 订单金额：原价或扣除优惠后的金额，最终支付的金额
        /// </summary>
        public decimal Amount { get; set; }
		
		/// <summary>
        /// 订单成本
        /// </summary>
		public decimal Cost { get; set; }
		
		/// <summary>
        /// 业绩提成
        /// </summary>
		public decimal Commission { get; set; }
		
		/// <summary>
        /// 直推奖励
        /// </summary>
		public decimal L1Fee { get; set; }
		
		/// <summary>
        /// 间推奖励
        /// </summary>
		public decimal L2Fee { get; set; }
		
		/// <summary>
        /// 订单状态：10-待付款，11-已取消，20-待审核，30-待发货，100-已完成
        /// </summary>
		public int Status { get; set; }
		
		/// <summary>
        /// 交易流水号
        /// </summary>
		public string TradeNo { get; set; }
		
		/// <summary>
        /// 收款账号
        /// </summary>
		public string PayeeAccount { get; set; }
		
		/// <summary>
        /// 收货人电话
        /// </summary>
		public string ReceiverPhone { get; set; }
		
		/// <summary>
        /// 收货人姓名
        /// </summary>
		public string ReceiverName { get; set; }
		
		/// <summary>
        /// 收货地址
        /// </summary>
		public string ReceivingAddress { get; set; }
		
		/// <summary>
        /// 收货区县ID
        /// </summary>
		public int CountyID { get; set; }
		
		/// <summary>
        /// 物流公司
        /// </summary>
		public string ExpressCompany { get; set; }
		
		/// <summary>
        /// 物流单号
        /// </summary>
		public string ExpressNo { get; set; }
		
		/// <summary>
        /// 发货时间
        /// </summary>
		public DateTime DeliveryTime { get; set; }
		
		/// <summary>
        /// 创建时间
        /// </summary>
		public DateTime CreateTime { get; set; }
		
		/// <summary>
        /// 转账日期
        /// </summary>
		public DateTime TransferDate { get; set; }
		
		/// <summary>
        /// 转账备注
        /// </summary>
		public string TransferMemo { get; set; }

		/// <summary>
		/// 订单项列表
		/// </summary>
        public List<OrderItemDto> ItemList { get; set; }

    }
	
	public class OrderDetailsDto : Order
	{
		/// <summary>
		/// 订单项列表
		/// </summary>
		public List<OrderItemDto> ItemList { get; set; }
	}

    public class OrderAuditingDto
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        public long OrderID { get; set; }

        ///// <summary>
        ///// 快递公司
        ///// </summary>
        //public string ExpressCompany { get; set; }

        ///// <summary>
        ///// 快递单号
        ///// </summary>
        //public string ExpressNo { get; set; }

    }

}